Function IsValidPath (DestPath$, ByVal DefaultDrive$) As Integer
'----------------------------
' Remove left and right spaces
'----------------------------
DestPath$ = RTrim$(LTrim$(DestPath$))
'-----------------------------
' Check Default Drive Parameter
'-----------------------------
If Right$(DefaultDrive$, 1) <> ":" Or Len(DefaultDrive$) <> 2 Then
MsgBox "Bad default drive parameter specified in IsValidPath Function. You passed, """ + DefaultDrive$ + """. Must be one drive letter and "":"". For example, ""C:"", ""D:""...", 64, "Setup Kit Error"